package client;

import entity.Calculator;

/**
 * @Author Yenchingcheng
 * @Date 2023/6/19 15:27
 * @Description
 **/
public class Client {

    private Calculator calculator;

    public Client(Calculator calculator) {
        this.calculator = calculator;
    }

    public Double getResult(double number1,double number2){
        return calculator.calculate(number1,number2);
    }
}
